<?php
//dezend by http://www.yunlu99.com/ QQ:270656184
defined('BASEPATH') || exit('No direct script access allowed');
$this->load->helper('url');
?><!DOCTYPE html>
	<head>
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta name="viewport" content="width=device-width, initial-scale=1">
 	<link rel="shortcut icon" href="favicon.ico">
	<link rel="stylesheet" href="/static/css/animate.css">
	<link rel="stylesheet" href="/static/plugin/jquery-ui/jquery-ui.min.css" />
	<link rel="stylesheet" href="/static/plugin/font-awesome/css/font-awesome.min.css" />
	<link rel="stylesheet" href="/static/css/style.css">
	<link rel="stylesheet" href="/static/css/user.css">
	<script src="/static/js/jquery-1.10.2.min.js"></script>
	
	<script src="/static/plugin/jquery-ui/jquery-ui.min.js"></script>
	<script src="/static/plugin/layer/layer.js"></script>
	<script src="/static/js/jquery.form.min.js"></script>
	<script src="/static/js/jquery.cookie.js"></script>
	<script src="/static/js/extend.js"></script>
	</head>
	
	<body>
	<div class="form-title"><?php echo lang('user_real_tit');?></div>
	<div class="form">
		<div class="form-notice">认证年龄需满18周岁，最高年龄为60周岁</div>
	        <form id="form_id" action="<?php echo site_url('safe/real_do');?>" method="post">
				<table>
				<tr>
			    <th width=70><?php echo lang('user_name');?></th>
			    <td><input type="text" name="name"><p><?php echo lang('user_name_warn');?></p></td>
			    <td width=70></td>
				</tr>
				<tr>
		            <th width="70"><?php echo lang('user_area');?></th>
				    <td>
					    <select name="area_code_idno">
					    	
<?php
foreach ($area as $v) {
?>					    	<option value="<?php echo $v['code'];?>" 
<?php
	if ($v['is_default'] == 1) {
?>selected<?php
	}

?>><?php echo $v['name'];?></option>
					    	<?php
}

?>					    </select>
					    <p><?php echo lang('user_area_warn');?></p>
				    </td>
					<td width="70"></td>
				</tr>
				<tr>
		            <th width="70"><?php echo lang('user_idtype');?></th>
				    <td>
					    <select name="idtype">
					    	<option value="0">身份证</option>
					    	<option value="1">护照</option>
					    	<option value="2">通行证</option>
					    </select>
				    </td>
					<td width="70"></td>
				</tr>
				<tr>
			    <th><?php echo lang('user_idno');?></th>
			    <td><input type="text" name="idno"><p><?php echo lang('user_idno_warn');?></p></td>
				</tr>
				<tr><th></th><td class="warning"></td></tr>
				<tr>
				<th></th><td><button type="submit"><?php echo lang('user_submit');?></button></td>
				</tr>
			  </table>
			</form>
	</div>
</body>
</html>
<script>
$(function(){
	$('#form_id').winForm();
});
</script>